#!/usr/bin/perl
#Programmer: Rory Carmichael
#Purpose: Script the running of the min_max_pipe.py weaver tool on all fasta files in the current directory
#Usage: min_max_dir.pl

my $dir = shift;
for my $file (`ls *.fasta`) {
	chomp $file;
	`. env.sh; weaver -c inputs -c executables -o $file.min_max.sandbox min_max_pipe.py $file`;
	`cd $file.min_max.sandbox; condor_submit_makeflow Makeflow`;
}
